/*
 * @Author: moonwater 13812995013@163.com
 * @Date: 2025-03-05 09:51:41
 * @LastEditors: moonwater 13812995013@163.com
 * @LastEditTime: 2025-03-05 14:15:24
 * @FilePath: \盐师22Git仓库\day08\Test02.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AEa
 */
package day08;

public class Test02 {

    public static void main(String[] args) {
        //创建Dog类对象
    Dog d1 = new Dog();

    d1.setAge(2);
    d1.setColor("黑白");
    d1.setName("二哈");
    d1.show();
    System.out.println(d1.getClass());
    System.out.println(d1.toString());
    d1.showAge();
    }
    
    
}
